6e82b0226af3ed8076879b85291ef3589d983487,core/baseLanguage/baseLanguage/source_gen/jetbrains/mps/baseLanguage/intentions/GenerateGetter_Intention.java,GenerateGetter_Intention,executeUI,#SNode#EditorContext#IntentionContext#,104

Before Change


  }

  public boolean executeUI(final SNode node, final EditorContext editorContext, IntentionContext intentionContext) {
    SelectFieldsDialog selectFieldsDialog = new SelectFieldsDialog(editorContext, editorContext.getMainFrame(), node);
    selectFieldsDialog.show();

    intentionContext.getContextParametersMap().put("selectedFields", selectFieldsDialog.getSelectedFields());
    return selectFieldsDialog.isOK();
  }

  public String getLocationString() {

After Change


  }

  public boolean executeUI(final SNode node, final EditorContext editorContext, IntentionContext intentionContext) {
    final Wrappers._T<SNodePointer[]> fields = new Wrappers._T<SNodePointer[]>();
    ModelAccess.instance().runReadAction(new Runnable() {
      public void run() {
        fields.value = ListSequence.fromList(SLinkOperations.getTargets(node, "field", true)).select(new ISelector<SNode, SNodePointer>() {
          public SNodePointer select(SNode it) {
            return new SNodePointer(it);
          }
        }).toGenericArray(SNodePointer.class);
      }
    });

    SelectFieldsDialog selectFieldsDialog = new SelectFieldsDialog(fields.value, false, editorContext.getOperationContext().getProject());
    selectFieldsDialog.setTitle("Select Fields to Generate Getters");
    selectFieldsDialog.show();

    if (!(selectFieldsDialog.isOK())) {
      return false;
    }

    intentionContext.getContextParametersMap().put("selectedFields", Sequence.fromIterable(((Iterable<SNodePointer>) selectFieldsDialog.getSelectedElements())).toGenericArray(SNodePointer.class));
    return true;
  }

  public String getLocationString() {